package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.InvoiceCustomerMapper;
import com.ruoyi.system.domain.InvoiceCustomer;
import com.ruoyi.system.service.IInvoiceCustomerService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-02
 */
@Service
public class InvoiceCustomerServiceImpl implements IInvoiceCustomerService 
{
    @Autowired
    private InvoiceCustomerMapper invoiceCustomerMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public InvoiceCustomer selectInvoiceCustomerById(Long id)
    {
        return invoiceCustomerMapper.selectInvoiceCustomerById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param invoiceCustomer 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<InvoiceCustomer> selectInvoiceCustomerList(InvoiceCustomer invoiceCustomer)
    {
        return invoiceCustomerMapper.selectInvoiceCustomerList(invoiceCustomer);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param invoiceCustomer 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertInvoiceCustomer(InvoiceCustomer invoiceCustomer)
    {
        return invoiceCustomerMapper.insertInvoiceCustomer(invoiceCustomer);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param invoiceCustomer 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateInvoiceCustomer(InvoiceCustomer invoiceCustomer)
    {
        return invoiceCustomerMapper.updateInvoiceCustomer(invoiceCustomer);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteInvoiceCustomerByIds(Long[] ids)
    {
        return invoiceCustomerMapper.deleteInvoiceCustomerByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteInvoiceCustomerById(Long id)
    {
        return invoiceCustomerMapper.deleteInvoiceCustomerById(id);
    }
}
